package cn.mxh.pethspt.vo;

/**
 * 枚举类 返回系统代码
 */
public enum ResultCode {
    SUCCESS(200,"操作成功"),
    FAILED(500,"操作失败"),
    FAILED_URL(404,"请求路径不存在！"),
    FAILED_URL_METHOD(405,"请求方式不存在！");

    private long code;
    private String message;

    private ResultCode(long code, String message) {
        this.code = code;
        this.message = message;
    }

    public long getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
